/**
 * 
 */
package craneding.gwt.databean.client.model;

import java.lang.annotation.Annotation;

/**
 * This's a class Which implements Category's annotation interface.
 * @author crane.ding
 * @version 1.0 2008-11-28
 */
public class CategoryMetadata implements Category {
	
	private String name;
	private String dependField;
	private String dependValue;
	
	public CategoryMetadata() {
	}
	
	/* (non-Javadoc)
	 * @see craneding.gwt.databean.client.Category#dependField()
	 */
	public String dependField() {
		return dependField;
	}

	/* (non-Javadoc)
	 * @see craneding.gwt.databean.client.Category#dependValue()
	 */
	public String dependValue() {
		return dependValue;
	}

	/* (non-Javadoc)
	 * @see craneding.gwt.databean.client.Category#name()
	 */
	public String name() {
		return name;
	}

	public CategoryMetadata dependField(String dependField) {
		this.dependField = dependField;
		return this;
	}

	public CategoryMetadata dependValue(String dependValue) {
		this.dependValue = dependValue;
		return this;
	}

	public CategoryMetadata name(String name) {
		this.name = name;
		return this;
	}

	public Class<? extends Annotation> annotationType() {
		return CategoryMetadata.class;
	}
}
